﻿export default [
  {
    path: '/',
    component: '../layouts/BlankLayout',
    routes: [
      {
        path: '/user',
        component: '../layouts/UserLayout',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './User/login',
          },
        ],
      },
      {
        path: '/',
        component: '../layouts/SecurityLayout',
        routes: [
          {
            path: '/',
            component: '../layouts/BasicLayout',
            routes: [
              {
                path: '/',
                redirect: '/homePage',
              },
              {
                path: '/HomePage',
                name: '首页',
                icon: 'smile',
                component: './HomePage',
              },
              {
                path: '/userList',
                name: '用户列表',
                icon: 'user',
                component: './UserList',
              },
              // {
              //   path: '/manager/userInfo',
              //   name: '个人中心',
              //   icon: 'user',
              //   component: './admin/UserManager/manageUser',
              // },
              {
                path: '/goods',
                name: '商品列表',
                icon: 'ShopOutlined',
                component: './Goods',
              },
              {
                name: '详情',
                path: '/goods/detail/:id',
                // component: './GoodsDetails',
                component: '../layouts/GoodsLayout',
                hideInMenu: true,
                parentKeys: ['/goodsManage'],
                routes: [
                  {
                    name: '商品详情',
                    path: 'goods-detail',
                    component: './goods-details/GoodsDetail',
                    hideInMenu: true,
                  },
                ],
              },
              {
                path: '/orders',
                name: '订单列表',
                icon: 'MoneyCollectOutlined',
                component: './Orders',
              },
              {
                path: '/crousel',
                name: '轮播图',
                icon: 'PictureOutlined',
                component: './Carousel',
              },
              {
                path: '/tips',
                name: '知识点',
                icon: 'ReadOutlined',
                component: './Tips',
              },
              {
                path: '/notice',
                name: '公告',
                icon: 'SoundOutlined',
                component: './Notice',
              },
              {
                path: '/category',
                name: '分类',
                icon: 'BarsOutlined',
                component: './Category',
              },
              {
                name: '个人设置',
                path: '/account/settings',
                hideInMenu: true,
                component: './AccountSettings',
              },
              {
                component: './404',
              },
            ],
          },
          {
            component: './404',
          },
        ],
      },
    ],
  },
  {
    component: './404',
  },
];
